package redarrow.wb.util;

public class CommonError {
	public static String getErrorMessage(int errorType) {
		String message = "success";
		switch (errorType) {
		case -1:
			message = "Fail";
			break;
		case -2:
			message = "SQL error";
			break;
		case -3:
			message = "Invalid Input";
			break;
		case -4:
			message = "Cannot read file config";
			break;	
		case -5:
			message = "System Error";
			break;
		case -6:
			message = "Class not found";
			break;
		case -7:
			message = "Unknown Exception";
			break;
		case -20:
			message = "User existed";
			break;
		case -21:
			message = "User not existed";
			break;
	}
		return message;
	}
}
